package top.letscode.adclicker.util;

import java.util.List;
import java.util.Random;

public class RandomUtil {

  private static Random RANDOM = new Random();

  public static int randomInt(int bound) {
    return RANDOM.nextInt(bound);
  }

  public static float randomFloat() {
    return RANDOM.nextFloat();
  }

  public static <T> T random(List<T> list) {
    return list.get(randomInt(list.size()));
  }
}
